package com.fc.mall.decoration.page.object;

import lombok.Getter;
import lombok.Setter;
import org.joda.time.DateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Getter
@Setter
public class CustomPageCreate {

    @NotBlank
    @Size(min = 1, max = 60)
    private String name;

    @NotBlank
    @Size(min = 1, max = 128)
    private String description;

    private DateTime activeTime;

    private DateTime expireTime;

    private Boolean isDefault;

    @NotNull
    private PageStatus status = PageStatus.ACTIVE;
}
